gdk/win32/gdkmonitor-win32.c: Fix build on non-GCC
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 9 May 2016 05:14:01 +0000 (13:14 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 9 May 2016 05:14:01 +0000 (13:14 +0800)
WINBOOL is MinGW-specific, so change it to BOOL, which is universally
available.

Also, Visua Studio is more picky on where __stdcall (WINAPI) is placed, so
fix that to be in-sync with what is done in the other sources.

gdk/win32/gdkmonitor-win32.c

index bae93202722eb368b4825bc62ed64d086778d0bc..b78309841d9582dff29c0ce48469c19794338f4f 100644 (file)
@@ -89,7 +89,7 @@ typedef struct fixedDISPLAYCONFIG_PATH_TARGET_INFO {
   DISPLAYCONFIG_SCALING                      scaling;
   DISPLAYCONFIG_RATIONAL                     refreshRate;
   DISPLAYCONFIG_SCANLINE_ORDERING            scanLineOrdering;
-  WINBOOL                                    targetAvailable;
+  BOOL                                       targetAvailable;
   UINT32                                     statusFlags;
 } fixedDISPLAYCONFIG_PATH_TARGET_INFO;
 
@@ -122,21 +122,21 @@ typedef struct fixedDISPLAYCONFIG_TARGET_DEVICE_NAME
  * to load them manually anyway (otherwise GTK apps won't even start
  * on Vista).
  */
-typedef LONG WINAPI
-(funcGetDisplayConfigBufferSizes) (UINT32 flags,
-                                     UINT32* numPathArrayElements,
-                                     UINT32* numModeInfoArrayElements);
-
-typedef LONG WINAPI
-(funcQueryDisplayConfig) (UINT32 flags,
-                            UINT32* numPathArrayElements,
-                            fixedDISPLAYCONFIG_PATH_INFO* pathArray,
-                            UINT32* numModeInfoArrayElements,
-                            DISPLAYCONFIG_MODE_INFO* modeInfoArray,
-                            DISPLAYCONFIG_TOPOLOGY_ID* currentTopologyId);
-
-typedef LONG WINAPI
-(funcDisplayConfigGetDeviceInfo) (DISPLAYCONFIG_DEVICE_INFO_HEADER* requestPacket);
+typedef LONG
+(WINAPI *funcGetDisplayConfigBufferSizes) (UINT32 flags,
+                                           UINT32* numPathArrayElements,
+                                           UINT32* numModeInfoArrayElements);
+
+typedef LONG
+(WINAPI *funcQueryDisplayConfig) (UINT32 flags,
+                                  UINT32* numPathArrayElements,
+                                  fixedDISPLAYCONFIG_PATH_INFO* pathArray,
+                                  UINT32* numModeInfoArrayElements,
+                                  DISPLAYCONFIG_MODE_INFO* modeInfoArray,
+                                  DISPLAYCONFIG_TOPOLOGY_ID* currentTopologyId);
+
+typedef LONG
+(WINAPI *funcDisplayConfigGetDeviceInfo) (DISPLAYCONFIG_DEVICE_INFO_HEADER* requestPacket);
 
 #ifndef MONITORINFOF_PRIMARY
 #define MONITORINFOF_PRIMARY 1